package com.appspot.categoryeditor.utils;

public final class UrlUtils {

	public static String createUserPageUrl(String userid){
		return "/users" + "/" + userid;
	}
	public static String createUserPageUrl(String userid, String categoryid){
		return "/users" + "/" + userid + "/" + categoryid;
	}
	public static String addParam(String url, String name, String value){
		if(url.indexOf("?") == -1){
			url += "?";
		}
		url += name + "=" + value;
		return url;
	}
	
}
